package com.ruoyi.project.search.viewStock.mapper;

import java.util.List;
import com.ruoyi.project.search.viewStock.domain.ViewStock;

/**
 * 库存明细Mapper接口
 * 
 * @author ruoyi
 * @date 2023-08-30
 */
public interface ViewStockMapper 
{
    /**
     * 查询库存明细
     * 
     * @param stockId 库存明细主键
     * @return 库存明细
     */
    public ViewStock selectViewStockByStockId(String stockId);

    /**
     * 查询库存明细列表
     * 
     * @param viewStock 库存明细
     * @return 库存明细集合
     */
    public List<ViewStock> selectViewStockList(ViewStock viewStock);

    /**
     * 新增库存明细
     * 
     * @param viewStock 库存明细
     * @return 结果
     */
    public int insertViewStock(ViewStock viewStock);

    /**
     * 修改库存明细
     * 
     * @param viewStock 库存明细
     * @return 结果
     */
    public int updateViewStock(ViewStock viewStock);

    /**
     * 删除库存明细
     * 
     * @param stockId 库存明细主键
     * @return 结果
     */
    public int deleteViewStockByStockId(String stockId);

    /**
     * 批量删除库存明细
     * 
     * @param stockIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteViewStockByStockIds(String[] stockIds);
}
